package org.shiwen.week9.answer.q4;

public class ElectricVehicle extends Vehicle implements Ipower{
    public ElectricVehicle(String brand,String color) {
        setBrand(brand);
        setColor(color);
    }

    @Override
    public void run() {
        System.out.println("使用"+getBrand()+"的"+getColor()+"电动车在行驶中");
    }

    @Override
    public void power() {
        System.out.println("电能通过电机转换成动能");
    }
}
